package com.ruicar.afs.cloud.afscase.infomanagement.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruicar.afs.cloud.afscase.infomanagement.entity.CaseCustInfo;
import com.ruicar.afs.cloud.afscase.infomanagement.mapper.CaseCustInfoMapper;
import com.ruicar.afs.cloud.afscase.infomanagement.service.CaseCustInfoService;
import com.ruicar.afs.cloud.afscase.infomanagement.vo.CustomerInfoVo;
import com.ruicar.afs.cloud.afscase.infomanagement.vo.InterfaceInfoVo;
import com.ruicar.afs.cloud.common.modules.contract.cms.vo.CustBaseInfoVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>Description: </p>
 *
 * @author ZC.GUO
 * @version 1.0
 * @date create on 2020-05-13 15:20
 */
@Service
@AllArgsConstructor
@Data
@Slf4j
public class CaseCustInfoServiceImpl extends ServiceImpl<CaseCustInfoMapper, CaseCustInfo> implements CaseCustInfoService {


    @Override
    public CustomerInfoVo getCustomerInfo(String applyNo, String role) {
        return baseMapper.getCustomerInfo(applyNo, role);
    }

    @Override
    public InterfaceInfoVo getCustomerOtherInfo(String applyNo) {
        return baseMapper.getCustomerOtherInfo(applyNo);
    }

    @Override
    public List<CustBaseInfoVo> getBankInfoByApplyNo(List<String> applyNo) {
        return baseMapper.getBankInfoByApplyNo(applyNo);
    }

}
